package com.example.service.impl;

import com.example.dao.RoleDao;
import com.example.pojo.Role;
import com.example.service.RoleService;

public class RoleServiceImpl extends BaseImpl<RoleDao> implements RoleService {

    @Override
    public int add(Role role) {
        return mapper.add(role);
    }

    @Override
    public void delete(int id) {
        mapper.delete(id);
    }

    @Override
    public void update(Role role) {
        mapper.update(role);
    }

    @Override
    public Role find(int id) {
        return mapper.find(id);
    }
}
